package entity

import "time"

func (User) TableName() string {
	return "sys_user"
}

type User struct {
	Id         int
	Name       string    `gorm:"type:varchar(50)"`
	Avatar     string    `gorm:"type:varchar(150)"`
	Password   string    `gorm:"type:varchar(100)"`
	Email      string    `gorm:"type:varchar(100)"`
	DelStatus  int       `gorm:"type:tinyint"`
	CreateTime time.Time `gorm:"type:timestamp;default:CURRENT_TIMESTAMP"`
	UpdateTime time.Time `gorm:"type:timestamp;default:CURRENT_TIMESTAMP"`
	Role       int       `gorm:"type:tinyint;"`
}
